package com.neusoft.elm.service;

import com.neusoft.elm.dao.BusinessDao;
import com.neusoft.elm.po.Business;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class BusinessServiceImpl implements BusinessService {
    @Autowired
    private BusinessDao businessDao;
    @Override
    public List<Business> listBusinessByOrderTypeId(Integer orderTypeId) throws Exception {

        List<Business> list = businessDao.listBusinessByOrderTypeId(orderTypeId);
        return list;
    }
    @Override
    public Business getBusinessById(Integer businessId) throws Exception {
        Business business = businessDao.getBusinessById(businessId);
        return business;
    }
}
